package com.bckj.fastboot.iot.data.mongo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

/**
 * IotDeviceStatusRecord
 *
 * @author wfc
 **/
@Data
@Document("iot_device_status_record")
public class IotDeviceStatusRecord {
    /**
     * 主键
     */
    @Id
    private Long id;
    /**
     * 设备id
     */
    private Long devId;
    /**
     * 设备编号
     */
    private String devCode;
    /**
     * 状态转换前状态
     */
    private Integer fromStatus;
    /**
     * 状态转换后状态
     */
    private Integer toStatus;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
